﻿using HiSport.Application.Auth.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Application.Auth
{
    /// <summary>
    /// 授权服务
    /// </summary>
    public interface IAuthService
    {

        /// <summary>
        /// 账号登陆
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<LoginOutput> Login(LoginInput input);

        /// <summary>
        /// 获取登录账号
        /// </summary>
        /// <returns></returns>
        Task<LoginUserOutput> GetUserInfo();

        /// <summary>
        /// 退出系统
        /// </summary>
        void Logout();
    }
}
